package cn.lzy.dao;

import cn.lzy.model.domain.UserAuthority;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author: gao dan
 * @CreateTime: 2023-11-02  23:45
 */
@Mapper
public interface UserAuthorityMapper {


    int insertUser(UserAuthority userAuthority);

    // 查看用户权限
    int getAuthoritiesByUserId(int userId);

    // 删除用户信息权限
    int deleteUserAuthority(int userId);

    //根据权限id查找用户权限
    String getAuthorityById(int authorityId);

}
